import { requestClient as request } from '#/api/request'

// 获取库存调整列表
export function getModifyStockRecordList(params: any) {
  return request.get('/admin/ModifyStockRecord/index', params)
}

// 获取库存调整详情
export function getModifyStockRecordInfo(params: any) {
  return request.get('/admin/ModifyStockRecord/edit', params)
}

// 新增库存调整
export function doModifyStockRecordAdd(data: any) {
  return request.post('/admin/ModifyStockRecord/add', data)
}

// 编辑库存调整
export function doModifyStockRecordEdit(data: any) {
  return request.post('/admin/ModifyStockRecord/edit', data)
}

// 删除库存调整
export function doModifyStockRecordDelete(data: any) {
  return request.post('/admin/ModifyStockRecord/del',data)
}

// 审核库存调整
export function doModifyStockRecordApproval(data: any) {
  return request.post('/admin/ModifyStockRecord/approval', data)
}

// 反审库存调整
export function doModifyStockRecordAgainst(data: any) {
  return request.post('/admin/ModifyStockRecord/against', data)
}
